package org.example;

/**
 * 作者:TC
 * 时间:2023/12/8 14:34
 * 描述:没有bug
 */

//任务类

public class Mission {
private int id;
private String content;
private String CorrectAnswer;
private int TimeLimit;
private int x;
private int y;
//构造方法
    public Mission( String content, String correctAnswer, int timeLimit, int x, int y) {
       this.id=MissionID.getMissionId();//使用辅助类来实现ID
       this.content = content;
        CorrectAnswer = correctAnswer;
        TimeLimit = timeLimit;
        this.x = x;
        this.y = y;
    }
//getter和setter函数
    public int getId() {
        return id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCorrectAnswer() {
        return CorrectAnswer;
    }

    public void setCorrectAnswer(String correctAnswer) {
        CorrectAnswer = correctAnswer;
    }

    public int getTimeLimit() {
        return TimeLimit;
    }

    public void setTimeLimit(int timeLimit) {
        TimeLimit = timeLimit;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
